//
// Created by lenovo on 2024/1/12.
//

#ifndef CALCULATOR_DOUBLECONVERTER_H
#define CALCULATOR_DOUBLECONVERTER_H

#include <string>
#include <utility>
#include "Converter.h"
class DoubleConverter :
        public Converter< std::string , double >
{
public:
    explicit DoubleConverter(std::string src) : Converter<std::string, double>(std::move(src)) {}
    double result() override;
protected:public:
    bool _done {false};
    double _result { 0 } ;
    bool _above {true};
    int _Int {0};
    double _Float {0};
    double weight {0.1};
    void convert() ;
};


#endif //CALCULATOR_DOUBLECONVERTER_H
